|
This page last changed on Jun 27, 2013 by mccann.
PostgreSQL Server kraken setup
This page is for recording significant configuration settings for the dedicated PostgreSQL server kraken. It exists in concert with the wiki page for the pgtest server where various system and PostgreSQL parameters are tuned for optimal performance on a ESX virtual machine. The parameters for kraken will be deferent than for pgtest; however, pgtest provides a useful test environment for proposed changes.
Hardware Documentation

Posted by mccann at Jul 10, 2013 16:55
|
|
Configuring kraken to run pgbench-tools as user mccann on kraken:
Copy pgbench-tools from its special configuration on pgtest for passwordless connection to the database, as postgres@pgtest:
Moved the .tar file from pgtest to kraken, then install in the web directory rather than in postgres's home directory. As postgres on kraken:
Setup pgbench-tools databases and run an initial test as postgres@kraken:
Configure web server on kraken to serve up results from pgbench-tools. First, submit help ticket to open up port 80 for http on kraken.

Posted by mccann at Jul 11, 2013 11:17
|
|
Modifying system parameters that have been tested on pgtest. Here are the changes:
pgbench-tools results at: http://kraken.shore.mbari.org/pgbench-tools/results.130715.AfterOSConfigChanges_tests_61_132/index.htm

Posted by mccann at Jul 12, 2013 22:16
|
|
Modified postgresql.conf based on lessons learned on pgtest. Here's the diff:
pgbench-tools results at: http://kraken.shore.mbari.org/pgbench-tools/results.130716.AfterPostgresql.confChanges_tests_133_204/index.htm (as expected, no appreciable changes in performance)

Posted by mccann at Jul 16, 2013 12:05
|
|
Installed STOQS on kraken in /u/stoqsadm/dev/stoqshg_kraken. First time installing on a system with limited sudo privileges. The 'make install's for gdal and mapserver required help tickets for real root to do. Several additional packages needed to be installed and some problems were discovered when running loaders/loadTestData.py. Details documented in these change sets:
https://code.google.com/p/stoqs/source/detail?r=fa16cdaf4acd4e7d4dd793c9eee9ca9319d21ff0
https://code.google.com/p/stoqs/source/detail?r=be90b1e585156e3816e488fe3f10f49f2852ace9

Posted by mccann at Jul 17, 2013 16:28
|
|
Fixed problems with stoqs install on kraken:
- Mapserver needed to be rebuilt with the configure argument: --with-postgis=/usr/pgsql-9.1/bin/pg_config and then copied to /var/www/cgi-bin
- Was getting "undefined symbol: GDALSetRasterUnitType" when trying to load web page. This was caused by Django not being able to find the locally built gdal. Instructions to add "export LD_LIBRARY_PATH='/usr/local/lib'" to the httpd startup script was added to the PRODUCTION file.
- We also needed to add this to the httpd startup script: export GDAL_DATA='/usr/share/gdal/'.

Posted by mccann at Jul 19, 2013 14:45
|
|
Doing a little exercise of STOQS on kraken. So far performance is similar to odss-staging. Turned down log_min_duration to 100ms in order to see some queries logged.
Installing pgFouine to analyze postgresql logs:
Edit timezone setting in /etc/php.ini:
Create a web directory for pgFouine reports and test running it:
Results viewable at http://kraken.shore.mbari.org/pgfouine/InitialTest.html

Posted by mccann at Jul 23, 2013 09:42
|
|
Configured Postgresql logging for production operation with datestamped log files and decreased log_min_duration to 10ms to capture more STOQS query activity:
pgFouine now:
gives: http://kraken.shore.mbari.org/pgfouine/postgresql-20130723.html
The pgfouine.php command is something we can put into cron, or just run it when we need to and examine the reports in http://kraken.shore.mbari.org/pgfouine/.

Posted by mccann at Jul 23, 2013 15:23
|
|
Last Thursday afternoon we exercised kraken's FusionIO drives with multiple parallel loads of STOQS campaign data. About 6 parallel loads were started around 2pm local time. Here is the sar report for that day as seen with this command:
kraken_sar_1aug2013.txt
The highest %util was 12.59% at 2:20 PM. We're barely scratching the surface with the capabilities of this machine.

Posted by mccann at Aug 05, 2013 16:19
|
|